-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: improve custom tsType
handling
#25
Conversation
src/loader/babel.ts
Outdated
@@ -186,14 +186,22 @@ function parseJSDocs (input: string | string[]): Schema { | |||
|
|||
if (firstTag >= 0) { | |||
const tags = clumpLines(lines.slice(firstTag), ['@'], '\n') | |||
const typedefs = tags.reduce((typedefs, tag) => { | |||
const { 1: typedef, 2: alias } = tag.match(/@typedef\s+\{([\S\s]+)\} (.*)/) || [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe using named groups?
One more suggestion to make typedef support perfect, we need to find a way to generate top level |
@pi0 That would be nice idea. I'll push as separate PR as I think that can be implemented solely in |
No description provided.